package com.skyz.wrap.entity.result;

import java.io.Serializable;
import java.util.List;

public class OrderDetail implements Serializable {

    /**
     * bargainId : 0
     * combinationId : 0
     * couponId : 0
     * couponPrice : 0
     * createTime :
     * deductionPrice : 0
     * deliveryId :
     * deliveryName :
     * deliveryType :
     * freightPrice : 0
     * id : 0
     * isChannel : 0
     * isMerCheck : 0
     * mapKey :
     * mark :
     * orderId :
     * orderInfoList : [{"attrId":0,"cartNum":0,"image":"","isReply":0,"price":0,"productId":0,"sku":"","storeName":""}]
     * orderStatusMsg :
     * paid : true
     * payPostage : 0
     * payPrice : 0
     * payTime :
     * payType :
     * payTypeStr :
     * pinkId : 0
     * proTotalPrice : 0
     * realName :
     * refundPrice : 0
     * refundReason :
     * refundReasonTime :
     * refundReasonWap :
     * refundReasonWapExplain :
     * refundReasonWapImg :
     * refundStatus : 0
     * seckillId : 0
     * shippingType : 0
     * status : 0
     * statusPic :
     * storeId : 0
     * systemStore : {"address":"","createTime":"","dayTime":"","detailedAddress":"","id":0,"image":"","introduction":"","isDel":true,"isShow":true,"latitude":"","longitude":"","name":"","phone":"","updateTime":"","validTime":""}
     * totalPrice : 0
     * type : 0
     * useIntegral : 0
     * userAddress :
     * userPhone :
     * verifyCode :
     */

    private int bargainId;
    private int combinationId;
    private int couponId;
    private String couponPrice;
    private String createTime;
    private String deductionPrice;
    private String deliveryId;
    private String deliveryName;
    private String deliveryType;
    private String freightPrice;
    private int id;
    private int isChannel;
    private int isMerCheck;
    private String mapKey;
    private String mark;
    private String orderId;
    private String orderStatusMsg;
    private boolean paid;
    private String payPostage;
    private String payPrice;
    private String payTime;
    private String payType;
    private String payTypeStr;
    private int pinkId;
    private String proTotalPrice;
    private String realName;
    private String refundPrice;
    private String refundReason;
    private String refundReasonTime;
    private String refundReasonWap;
    private String refundReasonWapExplain;
    private String refundReasonWapImg;
    private int refundStatus;
    private int seckillId;
    private int shippingType;
    private int status;
    private String statusPic;
    private int storeId;
    private SystemStoreBean systemStore;
    private String totalPrice;
    //订单类型:0-普通订单，1-视频号订单
    private int type;
    private int useIntegral;
    private String userAddress;
    private String userPhone;
    private String verifyCode;
    private List<Order.OrderInfoListBean> orderInfoList;

    public int getBargainId() {
        return bargainId;
    }

    public void setBargainId(int bargainId) {
        this.bargainId = bargainId;
    }

    public int getCombinationId() {
        return combinationId;
    }

    public void setCombinationId(int combinationId) {
        this.combinationId = combinationId;
    }

    public int getCouponId() {
        return couponId;
    }

    public void setCouponId(int couponId) {
        this.couponId = couponId;
    }

    public String getCouponPrice() {
        return couponPrice;
    }

    public void setCouponPrice(String couponPrice) {
        this.couponPrice = couponPrice;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getDeductionPrice() {
        return deductionPrice;
    }

    public void setDeductionPrice(String deductionPrice) {
        this.deductionPrice = deductionPrice;
    }

    public String getDeliveryId() {
        return deliveryId;
    }

    public void setDeliveryId(String deliveryId) {
        this.deliveryId = deliveryId;
    }

    public String getDeliveryName() {
        return deliveryName;
    }

    public void setDeliveryName(String deliveryName) {
        this.deliveryName = deliveryName;
    }

    public String getDeliveryType() {
        return deliveryType;
    }

    public void setDeliveryType(String deliveryType) {
        this.deliveryType = deliveryType;
    }

    public String getFreightPrice() {
        return freightPrice;
    }

    public void setFreightPrice(String freightPrice) {
        this.freightPrice = freightPrice;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getIsChannel() {
        return isChannel;
    }

    public void setIsChannel(int isChannel) {
        this.isChannel = isChannel;
    }

    public int getIsMerCheck() {
        return isMerCheck;
    }

    public void setIsMerCheck(int isMerCheck) {
        this.isMerCheck = isMerCheck;
    }

    public String getMapKey() {
        return mapKey;
    }

    public void setMapKey(String mapKey) {
        this.mapKey = mapKey;
    }

    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderStatusMsg() {
        return orderStatusMsg;
    }

    public void setOrderStatusMsg(String orderStatusMsg) {
        this.orderStatusMsg = orderStatusMsg;
    }

    public boolean isPaid() {
        return paid;
    }

    public void setPaid(boolean paid) {
        this.paid = paid;
    }

    public String getPayPostage() {
        return payPostage;
    }

    public void setPayPostage(String payPostage) {
        this.payPostage = payPostage;
    }

    public String getPayPrice() {
        return payPrice;
    }

    public void setPayPrice(String payPrice) {
        this.payPrice = payPrice;
    }

    public String getPayTime() {
        return payTime;
    }

    public void setPayTime(String payTime) {
        this.payTime = payTime;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getPayTypeStr() {
        return payTypeStr;
    }

    public void setPayTypeStr(String payTypeStr) {
        this.payTypeStr = payTypeStr;
    }

    public int getPinkId() {
        return pinkId;
    }

    public void setPinkId(int pinkId) {
        this.pinkId = pinkId;
    }

    public String getProTotalPrice() {
        return proTotalPrice;
    }

    public void setProTotalPrice(String proTotalPrice) {
        this.proTotalPrice = proTotalPrice;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getRefundPrice() {
        return refundPrice;
    }

    public void setRefundPrice(String refundPrice) {
        this.refundPrice = refundPrice;
    }

    public String getRefundReason() {
        return refundReason;
    }

    public void setRefundReason(String refundReason) {
        this.refundReason = refundReason;
    }

    public String getRefundReasonTime() {
        return refundReasonTime;
    }

    public void setRefundReasonTime(String refundReasonTime) {
        this.refundReasonTime = refundReasonTime;
    }

    public String getRefundReasonWap() {
        return refundReasonWap;
    }

    public void setRefundReasonWap(String refundReasonWap) {
        this.refundReasonWap = refundReasonWap;
    }

    public String getRefundReasonWapExplain() {
        return refundReasonWapExplain;
    }

    public void setRefundReasonWapExplain(String refundReasonWapExplain) {
        this.refundReasonWapExplain = refundReasonWapExplain;
    }

    public String getRefundReasonWapImg() {
        return refundReasonWapImg;
    }

    public void setRefundReasonWapImg(String refundReasonWapImg) {
        this.refundReasonWapImg = refundReasonWapImg;
    }

    public int getRefundStatus() {
        return refundStatus;
    }

    public void setRefundStatus(int refundStatus) {
        this.refundStatus = refundStatus;
    }

    public int getSeckillId() {
        return seckillId;
    }

    public void setSeckillId(int seckillId) {
        this.seckillId = seckillId;
    }

    public int getShippingType() {
        return shippingType;
    }

    public void setShippingType(int shippingType) {
        this.shippingType = shippingType;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getStatusPic() {
        return statusPic;
    }

    public void setStatusPic(String statusPic) {
        this.statusPic = statusPic;
    }

    public int getStoreId() {
        return storeId;
    }

    public void setStoreId(int storeId) {
        this.storeId = storeId;
    }

    public SystemStoreBean getSystemStore() {
        return systemStore;
    }

    public void setSystemStore(SystemStoreBean systemStore) {
        this.systemStore = systemStore;
    }

    public String getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(String totalPrice) {
        this.totalPrice = totalPrice;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getUseIntegral() {
        return useIntegral;
    }

    public void setUseIntegral(int useIntegral) {
        this.useIntegral = useIntegral;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getVerifyCode() {
        return verifyCode;
    }

    public void setVerifyCode(String verifyCode) {
        this.verifyCode = verifyCode;
    }

    public List<Order.OrderInfoListBean> getOrderInfoList() {
        return orderInfoList;
    }

    public void setOrderInfoList(List<Order.OrderInfoListBean> orderInfoList) {
        this.orderInfoList = orderInfoList;
    }

    public int getOrderTabIndex() {
        //0：待发货；1：待收货；2：已收货，待评价；3：已完成
        if (!paid){
            return 0;
        }
        return status+1;
    }

    public boolean getShowPeisong() {
        //0：待发货；1：待收货；2：已收货，待评价；3：已完成
        return paid&&status>0;
    }

    public String getOrderStr() {
        if (!paid){
            return "待支付";
        }
        if (status==0){
            if (shippingType==1){
                return "待发货";
            }
            return "待核销";
        }else if (status==1){
            return "待收货";
        }else if (status==2){
            return "待评价";
        }else if (status==3){
            return "已完成";
        }
        return "";
    }

    public static class SystemStoreBean {
        /**
         * address :
         * createTime :
         * dayTime :
         * detailedAddress :
         * id : 0
         * image :
         * introduction :
         * isDel : true
         * isShow : true
         * latitude :
         * longitude :
         * name :
         * phone :
         * updateTime :
         * validTime :
         */

        private String address;
        private String createTime;
        private String dayTime;
        private String detailedAddress;
        private int id;
        private String image;
        private String introduction;
        private boolean isDel;
        private boolean isShow;
        private String latitude;
        private String longitude;
        private String name;
        private String phone;
        private String updateTime;
        private String validTime;

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getDayTime() {
            return dayTime;
        }

        public void setDayTime(String dayTime) {
            this.dayTime = dayTime;
        }

        public String getDetailedAddress() {
            return detailedAddress;
        }

        public void setDetailedAddress(String detailedAddress) {
            this.detailedAddress = detailedAddress;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        public String getIntroduction() {
            return introduction;
        }

        public void setIntroduction(String introduction) {
            this.introduction = introduction;
        }

        public boolean isIsDel() {
            return isDel;
        }

        public void setIsDel(boolean isDel) {
            this.isDel = isDel;
        }

        public boolean isIsShow() {
            return isShow;
        }

        public void setIsShow(boolean isShow) {
            this.isShow = isShow;
        }

        public String getLatitude() {
            return latitude;
        }

        public void setLatitude(String latitude) {
            this.latitude = latitude;
        }

        public String getLongitude() {
            return longitude;
        }

        public void setLongitude(String longitude) {
            this.longitude = longitude;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime;
        }

        public String getValidTime() {
            return validTime;
        }

        public void setValidTime(String validTime) {
            this.validTime = validTime;
        }
    }

}
